/****************************************************************
 * Fulguro
 * Copyright (C) 2004 Christophe Clienti
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 ***************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef __FLGR_CORE_GEOMETRY_H
#define __FLGR_CORE_GEOMETRY_H

#include <flgrCoreDll.h>
#include <flgrCoreErrors.h>
#include <flgrCoreTypes.h>
#include <flgrCoreData.h>


  /********************** 1D Functions ***********************************/


  EXPORT_LIB FLGR_Ret flgr1d_draw_line_ptr(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr1d_draw_line_str(FLGR_Data1D *dat, int x, int length, char *color);

  EXPORT_LIB void flgr1d_draw_line_fgBIT(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);
  EXPORT_LIB void flgr1d_draw_line_fgUINT8(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);
  EXPORT_LIB void flgr1d_draw_line_fgUINT16(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);
  EXPORT_LIB void flgr1d_draw_line_fgUINT32(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);
  EXPORT_LIB void flgr1d_draw_line_fgINT8(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);
  EXPORT_LIB void flgr1d_draw_line_fgINT16(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);
  EXPORT_LIB void flgr1d_draw_line_fgINT32(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);
  EXPORT_LIB void flgr1d_draw_line_fgFLOAT32(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);
  EXPORT_LIB void flgr1d_draw_line_fgFLOAT64(FLGR_Data1D *dat, int x, int length, FLGR_Vector *color);



  /********************** 2D Functions ***********************************/

  EXPORT_LIB FLGR_Ret flgr2d_draw_point_ptr(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_horizontal_line_ptr(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_vertical_line_ptr(FLGR_Data2D *dat, int x, int y, int size_y, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_line_ptr(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_rectangle_ptr(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_filled_rectangle_ptr(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_circle_ptr(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_disc_ptr(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_ellipse_ptr(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_filled_ellipse_ptr(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);

  EXPORT_LIB FLGR_Ret flgr2d_draw_point_str(FLGR_Data2D *dat, int x, int y, char *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_horizontal_line_str(FLGR_Data2D *dat, int x, int y, int size_x, char *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_vertical_line_str(FLGR_Data2D *dat, int x, int y, int size_y, char *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_line_str(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, char *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_rectangle_str(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, char *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_filled_rectangle_str(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, char *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_circle_str(FLGR_Data2D *dat, int x, int y, int radius, char *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_disc_str(FLGR_Data2D *dat, int x, int y, int radius, char *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_ellipse_str(FLGR_Data2D *dat, int x, int y, int a, int b, char *color);
  EXPORT_LIB FLGR_Ret flgr2d_draw_filled_ellipse_str(FLGR_Data2D *dat, int x, int y, int a, int b, char *color);

  EXPORT_LIB void flgr2d_draw_point_fgBIT(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_point_fgUINT8(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_point_fgUINT16(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_point_fgUINT32(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_point_fgINT8(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_point_fgINT16(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_point_fgINT32(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_point_fgFLOAT32(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_point_fgFLOAT64(FLGR_Data2D *dat, int x, int y, FLGR_Vector *color);

  EXPORT_LIB void flgr2d_draw_horizontal_line_fgBIT(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_horizontal_line_fgUINT8(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_horizontal_line_fgUINT16(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_horizontal_line_fgUINT32(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_horizontal_line_fgINT8(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_horizontal_line_fgINT16(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_horizontal_line_fgINT32(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_horizontal_line_fgFLOAT32(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_horizontal_line_fgFLOAT64(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);

  EXPORT_LIB void flgr2d_draw_vertical_line_fgBIT(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_vertical_line_fgUINT8(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_vertical_line_fgUINT16(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_vertical_line_fgUINT32(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_vertical_line_fgINT8(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_vertical_line_fgINT16(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_vertical_line_fgINT32(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_vertical_line_fgFLOAT32(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_vertical_line_fgFLOAT64(FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color);

  EXPORT_LIB void flgr2d_draw_line_fgBIT(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_line_fgUINT8(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_line_fgUINT16(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_line_fgUINT32(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_line_fgINT8(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_line_fgINT16(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_line_fgINT32(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_line_fgFLOAT32(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_line_fgFLOAT64(FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color);

  EXPORT_LIB void flgr2d_draw_rectangle_fgBIT(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_rectangle_fgUINT8(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_rectangle_fgUINT16(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_rectangle_fgUINT32(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_rectangle_fgINT8(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_rectangle_fgINT16(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_rectangle_fgINT32(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_rectangle_fgFLOAT32(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_rectangle_fgFLOAT64(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);

  EXPORT_LIB void flgr2d_draw_filled_rectangle_fgBIT(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_rectangle_fgUINT8(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_rectangle_fgUINT16(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_rectangle_fgUINT32(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_rectangle_fgINT8(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_rectangle_fgINT16(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_rectangle_fgINT32(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_rectangle_fgFLOAT32(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_rectangle_fgFLOAT64(FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color);

  EXPORT_LIB void flgr2d_draw_circle_fgBIT(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_circle_fgUINT8(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_circle_fgUINT16(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_circle_fgUINT32(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_circle_fgINT8(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_circle_fgINT16(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_circle_fgINT32(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_circle_fgFLOAT32(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_circle_fgFLOAT64(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);

  EXPORT_LIB void flgr2d_draw_disc_fgBIT(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_disc_fgUINT8(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_disc_fgUINT16(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_disc_fgUINT32(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_disc_fgINT8(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_disc_fgINT16(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_disc_fgINT32(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_disc_fgFLOAT32(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_disc_fgFLOAT64(FLGR_Data2D *dat, int x, int y, int radius, FLGR_Vector *color);

  EXPORT_LIB void flgr2d_draw_ellipse_fgBIT(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_ellipse_fgUINT8(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_ellipse_fgUINT16(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_ellipse_fgUINT32(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_ellipse_fgINT8(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_ellipse_fgINT16(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_ellipse_fgINT32(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_ellipse_fgFLOAT32(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_ellipse_fgFLOAT64(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);

  EXPORT_LIB void flgr2d_draw_filled_ellipse_fgBIT(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_ellipse_fgUINT8(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_ellipse_fgUINT16(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_ellipse_fgUINT32(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_ellipse_fgINT8(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_ellipse_fgINT16(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_ellipse_fgINT32(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_ellipse_fgFLOAT32(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);
  EXPORT_LIB void flgr2d_draw_filled_ellipse_fgFLOAT64(FLGR_Data2D *dat, int x, int y, int a, int b, FLGR_Vector *color);

  
#endif

#ifdef __cplusplus
}
#endif
